import BasicLayout from './../layout/BasicLayout.vue'
const RouteView = {
  name:'RouteView',
  render:h=>h('router-view')
}
export default [
  {
    path: "/login",
    component: () => import("@/views/login/index"),
  },
  // {
  //   path: "/workbench",
  //   component: () => import("@/views/workbench/index"),
  // },
  {
    path: '/',
    component: BasicLayout,
    redirect: '/workbench/index',
    children: [
      {
        path: '/workbench',
        name: 'workbench',
        redirect: '/workbench/index',
        component: () => import('./../views/workbench/index.vue'),
        meta: { title: "工作台", icon: "appstore" },
        rootMenu:true,
        children: [
          {
            path: '/workbench/index',
            name: 'workbench',
            component: () => import('./../views/workbench/index.vue'),
            // hiddenMenu: true,
            meta: { title: "工作台", icon: "user" }
          }]
      },
      {
        path: '/realNameManage',
        name: 'realNameManage',
        redirect: '/realNameManage/manager',
        component: { render: (h) => h('router-view') },
        meta: { title: "实名制管理", icon: "idcard" },
        rootMenu:false,
        children: [
          {
            path: '/realNameManage/manager',
            name: 'manager',
            component: () => import('./../views/realNameManage/manager'),
            meta: { title: "管理人员", icon: "user" }
          },
          {
            path: '/realNameManage/laborPerson',
            name: 'laborPerson',
            component: () => import('./../views/realNameManage/laborPerson'),
            meta: { title: "劳务人员", icon: "user" }
          },
          {
            path: '/realNameManage/laborUnitManage',
            name: 'laborUnitManage',
            component: () => import('./../views/realNameManage/laborUnitManage'),
            meta: { title: "劳务单位管理", icon: "user" }
          }
        ]
      },
      {
        path: '/attendanceManage',
        name: 'attendanceManage',
        redirect: '/attendanceManage/personAttendance',
        component: { render: (h) => h('router-view') },
        meta: { title: "考勤管理", icon: "schedule" },
        rootMenu:false,
        children: [
          {
            path: '/attendanceManage/personAttendance',
            name: 'personAttendance',
            component: () => import('./../views/attendanceManage/personAttendance'),
            meta: { title: "管理人员考勤", icon: "user" }
          },
          {
            path: '/attendanceManage/laborPerson',
            name: 'laborPersonAttendance',
            component: () => import('./../views/attendanceManage/laborPerson'),
            meta: { title: "劳务人员考勤", icon: "user" }
          }
        ]
      },
      {
        path: '/migrantWages',
        name: 'migrantWages',
        redirect: '/migrantWages/inspectionRecord',
        component: { render: (h) => h('router-view') },
        meta: { title: "农民工工资", icon: "account-book" },
        rootMenu:false,
        children: [
          {
            path: '/migrantWages/companyInfo',
            name: 'companyInfo',
            component: () => import('./../views/migrantWages/companyInfo'),
            meta: { title: "单位信息", icon: "user" }
          },
          {
            path: '/migrantWages/manageFile',
            name: 'manageFile',
            // component: Home,
            meta: { title: "管理文件", icon: "form" },
            component: () => import('@/views/manageFile'),
          },
          {
            path: '/migrantWages/wagePaymentRecord',
            name: 'wagePaymentRecord',
            // component: Home,
            meta: { title: "工资支付记录", icon: "form" },
            component: () => import('@/views/migrantWages/wagePaymentRecord')
          },
          {
            path: '/migrantWages/inspectionRecord',
            name: 'inspectionRecord',
            // component: Home,
            meta: { title: "检查记录", icon: "form" },
            component: () => import('@/views/migrantWages/inspectionRecord'),
          },
          {
            path: '/migrantWages/assessmentRecord',
            name: 'assessmentRecord',
            // component: Home,
            meta: { title: "考核记录", icon: "form" },
            component: () => import('@/views/migrantWages/assessmentRecord'),
          },
          {
            path: '/migrantWages/protectionInfo',
            name: 'protectionInfo',
            // component: Home,
            meta: { title: "维权记录", icon: "form" },
            component: () => import('@/views/migrantWages/protectionInfo'),
          },
         
          {
            path: '/migrantWages/unitAccount',
            name: 'detail',
            component: () => import('./../views/migrantWages/wagePaymentRecord/unitAccount.vue'),
            hiddenMenu: true,
            meta: { title: "单位台账", icon: "user" }
          },
          {
            path: '/migrantWages/teamPayroll',
            name: 'detail—detail',
            component: () => import('./../views/migrantWages/wagePaymentRecord/teamPayroll.vue'),
            hiddenMenu: true,
            meta: { title: "班组工资单", icon: "user" }
          },
          
        ]
      },
      {
        path: '/backManage',
        name: 'backManage',
        redirect: '/backManage/projectManage',
        component: { render: (h) => h('router-view') },
        meta: { title: "后台管理", icon: "setting" },
        rootMenu:false,
        children: [
          {
            path: '/backManage/projectManage',
            name: 'projectManage',
            component: () => import('./../views/backManage/projectManage'),
            meta: { title: "项目管理", icon: "user" }
          },
          {
            path: '/backManage/projectUserManage',
            name: 'projectUserManage',
            component: () => import('./../views/backManage/projectUserManage'),
            meta: { title: "项目用户管理", icon: "user" }
          },
          {
            path: '/backManage/rolePermission',
            name: 'rolePermission',
            component: () => import('./../views/backManage/rolePermission'),
            meta: { title: "角色权限配置", icon: "user" }
          }
        ]
      }
      // {
      //   path: '/constructionUnit',
      //   name: 'constructionUnit',
      //   redirect: '/constructionUnit/participatingUnits',
      //   component: { render: (h) => h('router-view') },
      //   meta: { title: "基本信息管理", icon: "profile" },
      //   children: [
      //     {
      //       path: '/constructionUnit/companyInfo',
      //       name: 'companyInfo',
      //       component: () => import('./../views/constructionUnit/companyInfo'),
      //       meta: { title: "单位信息", icon: "user" }
      //     },
      //     {
      //       path: '/constructionUnit/participatingUnits',
      //       name: 'participatingUnits',
      //       component: () => import('./../views/constructionUnit/participatingUnits'),
      //       meta: { title: "参建单位管理", icon: "user" }
      //     },
      //     {
      //       path: '/constructionUnit/detail',
      //       name: 'detail',
      //       component: () => import('./../views/constructionUnit/participatingUnits/detail.vue'),
      //       hiddenMenu:true,
      //       meta: { title: "参建单位管理详情", icon: "user" }
      //     },
      //   ]}
    ]
  },
  {
    path: '/gateway',
    name: 'gateway',
    component: ()=>import('../views/home/Home.vue')
  },
  {
    path: '/detail',
    name: 'detail',
    component: () => import(/* webpackChunkName: "about" */ '../views/detail')
  },
  {
    path: '/list',
    name: 'list',
    component: () => import(/* webpackChunkName: "about" */ '../views/list')
  },
  {
    path: '/projectDetails',
    name: 'projectDetails',
    component: () => import(/* webpackChunkName: "about" */ '../views/projectDetails')
  },
  {
    path: "/fu",
    component:RouteView,
    name: "施工",
    meta: { title: "施工父"},
    children: [
      {
        path: 'construction',
        name: 'construction',
        component: () => import('../views/construction/index2.vue'),
        meta: { title:"施工" }
      }
    ]
  },
  {
    path: '/laborUnit',
    name: 'laborUnit',
    component: () => import( '../views/laborUnit/index.vue'),
  },
  {
    path: '/teamGroup',
    name: 'teamGroup',
    component: () => import( '../views/teamGroup/index2.vue'),
  },
  {
    path: '/personnelInformation',
    name: 'personnelInformation',
    component: () => import(/* webpackChunkName: "about" */ '../views/teamInformation/personnelInformation')
  },
  {
    path: '/salaryInformation',
    name: 'salaryInformation',
    component: () => import(/* webpackChunkName: "about" */ '../views/teamInformation/salaryInformation')
  },
  {
    path: '/policiesAndRegulations/list',
    name: '政策法规列表页',
    component: () => import(/* webpackChunkName: "about" */ '../views/policiesAndRegulations/list')
  },
  {
    path: '/policiesAndRegulations/detail',
    name: '政策法规详情页',
    component: () => import(/* webpackChunkName: "about" */ '../views/policiesAndRegulations/detail')
  },
  {
    path: '/educationAndTraining/list',
    name: '教育培训列表页',
    component: () => import(/* webpackChunkName: "about" */ '../views/educationAndTraining/list')
  },
  {
    path: '/educationAndTraining/detail',
    name: '教育培训详情页',
    component: () => import(/* webpackChunkName: "about" */ '../views/educationAndTraining/detail')
  },
  {
    path: '/complaint/list',
    name: '投诉维权列表页',
    component: () => import(/* webpackChunkName: "about" */ '../views/complaint/list')
  },
  {
    path: '/complaint/detail',
    name: '投诉维权详情页',
    component: () => import(/* webpackChunkName: "about" */ '../views/complaint/detail')
  },
]